package com.mostone.push.demo

import android.app.Application
import android.util.Log
import com.mostone.push.sdk.MOPush
import com.mostone.push.sdk.base.listener.IMOLoggerListener

/**
 *
 * @author : SEA
 * @class : com.mostone.push.demo.App
 * @time : 2021/3/25 15:16
 */
class App : Application() {


    // --------------------------------------------------------------
    // <editor-fold defaultState="collapsed" desc="Fields">
    // --------------------------------------------------------------

    // </editor-fold>


    override fun onCreate() {
        super.onCreate()

        //注意正式版本取消
        if (BuildConfig.DEBUG)//log输出
            MOPush.instance.setDebugLogger(object : IMOLoggerListener {
                override fun log(s: String) {
                    Log.e("默往推送", s)
                }

            })
        //合规问题,可在隐私政策同意后再初始化
        MOPush.instance.init(this)
    }
    // </editor-fold>

    // --------------------------------------------------------------
    // <editor-fold defaultState="collapsed" desc="Define Methods">
    // --------------------------------------------------------------

    // </editor-fold>

    // --------------------------------------------------------------
    // <editor-fold defaultState="collapsed" desc="Inner and Anonymous Classes">
    // --------------------------------------------------------------

    // </editor-fold>

    // --------------------------------------------------------------
    // <editor-fold defaultState="collapsed" desc="Companion">
    // --------------------------------------------------------------

    // </editor-fold>

    // --------------------------------------------------------------
    // <editor-fold defaultState="collapsed" desc="Getter & Setter">
    // --------------------------------------------------------------

    // </editor-fold>
}